<?php
require_once("../../e/class/connect.php");
require_once("../../e/class/db_sql.php");
require_once("../../e/class/q_functions.php");
require_once("../../e/class/qinfofun.php");
require_once("../../e/class/user.php");
require_once("../../e/data/dbcache/class.php");
require_once("../../e/data/dbcache/MemberLevel.php");


	require_once('../../e/class/connect.php');
	require_once('../../e/class/db_sql.php');
	require_once("../../e/class/connect.php");
	require_once("../../e/class/db_sql.php");
	//require_once("../../e/class/functions.php");
	require_once("../../e/class/user.php");
	require_once("../../e/class/say.php");
	require_once("../../e/class/page_obj.php");

	@session_start();
	$sid=session_id();
	$type=$_REQUEST['v']?$_REQUEST['v']:"index";
	//jatMessage('messsage');
	$act_db='phome_ecms_actives';
	$tribe_db='phome_ecms_tribe';
	$link=db_connect();
	$empire=new mysqlquery();
	$header=DbTouch("phome_enewstempvar",array("varid"=>1));
	$m=array('index'=>array('js'=>array('skin/default/js/tribe_edit.js'),'css'=>array('skin/default/css/tribe_edit.css')),
			'ps'=>array('js'=>array('skin/default/js/view_page_pics.js')),
			'p'=>array('js'=>array('skin/default/js/view_p_page.js')),
			'u'=>array('js'=>array('skin/default/js/view_u_page.js')),
			);
	$file="view_".$type.".php";
	if($file){
		$html_header=$m[$type];
		include($file);
	}else{
		echo 'file no exsit';
		exit();
	}
	exit();
	switch($type){
		case ('pic'):

		exit();break;
	default:
		include('view_index.php');
	exit();break;
	}
?>